import requests

base_url = "http://192.168.2.36:8088/futureloan/mvc/api/member/"
#sign_001：手机号码已被注册
# canshu = {"mobilephoe":18329835833,"pwd":123456}
# r = requests.get(base_url + "register",params = canshu )
# assert r.json()['msg'] == "手机号码格式不正确"
# assert r.json()['code'] == "20110"
# assert r.json()['status'] ==  0
#用例1：验证用户使用不合法手机号码注册，注册异常
canshu = {"mobilephoe":18329835839,"pwd":123456}
#print(u)
r = requests.get(base_url + "register",params = canshu )
print(r.text)
# assert r.json()['status'] == "0"
# assert r.json()['code'] == "20109"
# assert r.json()['msg'] == "手机号码格式不正确"
#sign_002 验证用不使用手机号码注册，注册异常
# canshu = {"mobilephoe": " ","pwd":123456}
# r = requests.get(base_url + "register",params = canshu )
# assert r.json()['status'] == "0"
# assert r.json()['code'] == "20109"
# assert r.json()['msg'] == "手机号码格式不正确"
